{{extends file="admin/admin_header.tpl"}}
{{block name="content"}}
<form action="{{site_url("alumni/Sort?data=cate")}}" method="post">
	<h3>院友管理</h3>
	<div class="table-responsive">
		<table class="table table-striped table-bordered table-hover">
			<thead>
				<tr>
					<th>Id</th>
					<th>姓名</th>
					<th>性别</th>
					<th>专业</th>
					<th>年级</th>
					<th>工作单位</th>
					<th>职务</th>
					<th>QQ</th>
					<th>联系电话</th>
					<th>Email</th>
					<th style="text-align: center;">操作</th>
				</tr>
			</thead>
			<tbody>
				{{foreach $alumni as $v}}
				<tr>
					<td>{{$v.id}}</td>
					<td>{{$v.name}}</td>
					<td>
						{{if $v.id == 0}}{{else if $v.gender == 1}}男{{else if $v.gender == 0}}女{{else}}未填写{{/if}}
					</td>
					<td>{{$v.major}}</td>
					<td>{{$v.grade}}</td>
					<td>{{$v.org}}</td>
					<td>{{$v.post}}</td>
					<td>{{$v.qq}}</td>
					<td>{{$v.tel}}</td>
					<td>{{$v.email}}</td>
					<td style="text-align:center;">
						{{if $v.id != 0}}
						<a href="{{site_url("alumni/delete?id={{$v.id}}")}}" class="btn btn-xs btn-danger">删除</a>
						{{/if}}
					</td>
				</tr>
				{{/foreach}}
			</tbody>
		</table>
	</div>
</form>
{{/block}}